package com.bluestarenergy.party.sample.domain;

/**
 * Represents a particular person's information, independent of his/her jobs or
 * roles.
 * @version 1.0
 * @created 01-Sep-2006 1:42:35 PM
 */
public class Person extends Party {

	private static final long serialVersionUID = 1L;
	private PersonDetail personDetail;

	public Person(){
		personDetail = new PersonDetail();
	}

	public PersonDetail getPersonDetail(){
		return personDetail;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setPersonDetail(PersonDetail newVal){
		personDetail = newVal;
	}

	@Override
	public String getFirstName() {
		return personDetail.getFirstName();
	}

	@Override
	public String getLastName() {
		return personDetail.getLastName();
	}

	@Override
	public void setFirstName(String firstName) {
		personDetail.setFirstName(firstName);
	}

	@Override
	public void setLastName(String lastName) {
		personDetail.setLastName(lastName);
	}
	

}